Skip to content

Fixed typos in Enter-PSSession -UserName parameter description#12878

Merged
sdwheeler merged 3 commits intoMicrosoftDocs:mainfrom
dodexahedron:enter-pssession-typo-fixes
Mar 23, 2026
Merged

Fixed typos in Enter-PSSession -UserName parameter description#12878
sdwheeler merged 3 commits intoMicrosoftDocs:mainfrom
dodexahedron:enter-pssession-typo-fixes

Conversation

@dodexahedron
Copy link
Copy Markdown
Contributor

PR Summary

Fixed spelling "uou" -> "you" and hyphenated "key based" -> "key-based" in the UserName parameter description of the Enter-PSSession cmdlet.

Although I also have some commentary about this parameter's description, for the part where it talks about ssh behaviors:

  • password and publickey are not the only two possibilities
  • Authentication methods are not exclusive of each other
  • There can be more than one authentication method configured.
  • There can be more than one authentication method required
  • Authentication methods can be required in a specific sequence.
  • publickey, if it appears more than once in a sequence, requires that each key be unique (ie you cannot use the same key twice)
  • (And other implementation details about openssh authentication)

The point of all that is that, in my opinion, the part of the description talking about ssh behavior seems out-of-scope for this document.

Even if it's desirable to be there for convenience, it should probably not be so absolute in its wording, at least about the sentence I fixed in this PR.

For instance, if the server has AuthenticationMethods set to publickey,password or password,publickey or any other sequence containing both, you will, in fact, be prompted for password when you have supplied a key.
And then there are other options, like kerberos, which openssh supports and which behaves more like publickey from a user perspective, and is also not exclusive of the others.

The only invariant is that, if you supply a username, it overrides the default username presented to the server.

I'll put that into an issue if y'all prefer, and if y'all think it's worth addressing with more than a simple edit (like just deleting that text).

PR Checklist

  • Descriptive Title: This PR's title is a synopsis of the changes it proposes.
  • Summary: This PR's summary describes the scope and intent of the change.
  • Contributor's Guide: I have read the [contributor's guide][contrib].
  • Style: This PR adheres to the [style guide][style].

RTG

Fixed spelling "uou" -> "you" and hyphenated "key based" -> "key-based"
Copilot AI review requested due to automatic review settings March 23, 2026 05:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR corrects minor wording issues in the Enter-PSSession documentation for the -UserName parameter in the PowerShell 7.6 reference docs.

Changes:

  • Fixes a typo (uouyou) in the -UserName parameter description.
  • Hyphenates “key based” to “key-based” for consistent phrasing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@learn-build-service-prod
Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Copy Markdown
Contributor

Learn Build status updates of commit aa5cab0:

✅ Validation status: passed

File Status Preview URL Details
reference/7.6/Microsoft.PowerShell.Core/Enter-PSSession.md ✅Succeeded View (powershell-7.6)

For more details, please refer to the build report.

@dodexahedron
Copy link
Copy Markdown
Contributor Author

I just took a look at the New-PSSession command too, since I figured it might have the same typos. It does not, and the text is slightly different.

Seems to me these two commands should use the same text for this parameter, whatever that ends up being.

sdwheeler
sdwheeler previously approved these changes Mar 23, 2026
@learn-build-service-prod
Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 22d320d:

✅ Validation status: passed

File Status Preview URL Details
reference/7.4/Microsoft.PowerShell.Core/Enter-PSSession.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Core/Enter-PSSession.md ✅Succeeded View (powershell-7.5)
reference/7.6/Microsoft.PowerShell.Core/Enter-PSSession.md ✅Succeeded View (powershell-7.6)

For more details, please refer to the build report.

@learn-build-service-prod
Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 6bad886:

✅ Validation status: passed

File Status Preview URL Details
reference/7.4/Microsoft.PowerShell.Core/Enter-PSSession.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Core/New-PSSession.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Core/Enter-PSSession.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Core/New-PSSession.md ✅Succeeded View (powershell-7.5)
reference/7.6/Microsoft.PowerShell.Core/Enter-PSSession.md ✅Succeeded View (powershell-7.6)
reference/7.6/Microsoft.PowerShell.Core/New-PSSession.md ✅Succeeded View (powershell-7.6)

For more details, please refer to the build report.

@sdwheeler sdwheeler merged commit e8b7424 into MicrosoftDocs:main Mar 23, 2026
5 checks passed
@sdwheeler
Copy link
Copy Markdown
Collaborator

sdwheeler commented Mar 23, 2026

I'll put that into an issue if y'all prefer, and if y'all think it's worth addressing with more than a simple edit (like just deleting that text).

@dodexahedron Thanks for the edits and feedback. I changed the wording to be more general about authentication. I think this is all we need to say about it in this context.

@dodexahedron dodexahedron deleted the enter-pssession-typo-fixes branch April 3, 2026 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants